import 'package:ls_work/a_yyt/models/medical_elder_entity.dart';

class MedicalRecentModel {
  List<MedicalElderInfo>? data;

  MedicalRecentModel({this.data});

  factory MedicalRecentModel.fromJson(Map<String, dynamic> json) {
    final originList = json['data'] as List?;
    List<MedicalElderInfo> protocolList =
        (originList??[]).map((value) => MedicalElderInfo.fromJson(value)).toList();
    return MedicalRecentModel(data: protocolList);
  }
}
